.split {
  flex: 1;
  display: flex;
  overflow: hidden;
  margin-top: 228px;
  margin-bottom: -64px;
}

.split.reverse {
  flex-direction: row-reverse;
}

.preview {
  width: 50%;
  z-index: 100;
  position: relative;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.preview img, .preview > div {
  float: right;
  width: 1248px;
  height: 600px;
  border-radius: 4px 4px 4px 4px;
}

.preview:hover .overlay {
  background-color: rgba(0, 0, 0, 0.1);
}

.arrow {
  color: #ff4ea4;
  height: 24px;
  width: 24px;
}

.overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  right: 0;
  width: 100%;
  max-width: 1024px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease;
}

.container {
  width: 50%;
  max-width: 600px;
  display: flex;
  justify-content: center;
}

.previewDescription {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  max-width: 368px;
  margin-left: 32px;
  margin-right: 32px;
}

.previewDescription p {
  border-bottom: solid 1px #f1f1f1;
  padding-bottom: 32px;
  margin-bottom: 32px;
}

.previewDescription a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.previewDescription a :global(svg) {
  animation: ease-out alternate 1;
  animation-duration: 460ms;
  transition: all 1000ms ease;
  transform: translateX(0px);
  animation-fill-mode: forwards;
}

.previewDescription a:hover {
  text-decoration: underline;
}

.previewDescription a:hover :global(svg) {
  animation-name: arrow;
}

.previewDescription h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.33;
}

.previewDescription img.preview {
  border-radius: 4px 4px 4px 4px;
  overflow: hidden;
}

@keyframes arrow {
  0% {
    transform: translateX(0px);
  }
  40% {
    transform: translateX(-10px);
  }
  60% {
    transform: translateX(3px);
  }
  80% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0px);
  }
}

@media (max-width: 768px) {
  .split {
    flex-direction: column-reverse;
    margin-top: 64px;
    margin-bottom: -64px;
    padding: 16px;
    padding-bottom: 0;
  }

  .split.reverse {
    flex-direction: column-reverse;
  }

  .text {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    flex: 1;
  }

  .container {
    max-width: none;
    width: 100%;
  }

  .preview {
    width: 100%;
    z-index: 100;
    position: relative;
    cursor: pointer;
    margin-top: 32px;
    overflow: hidden;

    /* Formula is: (height / width * 100%) */
  }

  .preview img, .preview > div {
    width: 100%;
    float: none;
    height: auto;
    position: absolute;
    top: 0;
  }

  .overlay:hover {
    background-color: transparent;
  }
}